//
//  PublicAccount.h
//  SouthChina
//
//  Created by creator_lq on 14/12/4.
//  Copyright (c) 2014年 科创. All rights reserved.
//


#define APPID @"appId"
#define APPNAME @"appName"
#define APPTYPE @"type"
#define SORT @"sort"
#define APPQP @"qp"
#define INITIALWORD @"initialWord"
#define FUNCDESC @"funcDesc"
#define HEADIMG @"headImg"
#define SUBSCRIBESTATUS @"subscribeStatus"
#define ISRECOMEND @"isRecommend"
#define ISRECEIVE @"isReceive"
#define DISABLECHAT @"disableChat"
#define ISBASIC @"isBasic"
#define ISBANNER @"isBanner"
#define APPLABEL @"appType"
#define ISHOME @"isHome"
#define USERSORT @"userSort"

#import "ORMRecord.h"

@interface PublicAccount : ORMRecord

@property(nonatomic,retain) NSString* appId; //应用ID
@property(nonatomic,retain) NSString* appName;//公众号名
@property(nonatomic,retain) NSString* type;//类型  1 普通公众�?2 系统公众�?
@property(nonatomic,retain) NSString* sort;//排序
@property(nonatomic,retain) NSString* qp;//全拼
@property(nonatomic,retain) NSString* initialWord;//首字
@property(nonatomic,retain) NSString* funcDesc;//功能描述
@property(nonatomic,retain) NSString* headImg;
@property(nonatomic,retain) NSString* subscribeStatus;//用户订阅状
@property(nonatomic,retain) NSString* isRecommend;//推荐标识
@property(nonatomic,retain) NSString* isReceive;//消息接收标识
@property(nonatomic,retain) NSString* disableChat;

//新增加
@property(nonatomic,retain) NSString* isBasic; //基础应用
@property(nonatomic,retain) NSString* isBanner;// 广告位
@property(nonatomic,retain) NSString* appType;// 分类
@property(nonatomic,retain) NSString* isHome;// 首页应用
@property(nonatomic,retain) NSString* userSort;//首页应用排序




-(BOOL)isSubscribeStatus;
-(BOOL)isReceiveMessage;
-(void)setPublicIsReceive:(BOOL)isReceive;
-(void)setPublicSubscribeStatus:(BOOL)isSubscribeStatus;
/**
 *	@brief	是否首页应用
 *
 *	@return	<#return value description#>
 */
-(BOOL)isHomeApp;
/**
 *	@brief	设置首页应用
 *
 *	@param 	isHomeApp 	<#isHomeApp description#>
 */
-(void)setIsHomeApp:(BOOL)isHomeApp;

@end
